package com.uestc.soft.mapper;

import com.uestc.soft.pojo.Loophole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LoopholeMapper {

    void l_insert(@Param("loophole") Loophole loophole);

    void l_deleteById(Integer id);

    void updateLevelAndNumber(@Param("id") Integer id,
                              @Param("number") Integer number);

    List<Loophole> l_selectByPage(@Param("index") int index,
                                  @Param("limit") int limit,
                                  @Param("level") String level,
                                  @Param("number") String number
    );

    int l_selectCount(@Param("level") String level,
                      @Param("number") String number);
}
